package cn.easybuy.service.impl;

import java.util.List;

import cn.easybuy.dao.UserDao;
import cn.easybuy.dao.impl.UserDaoImpl;
import cn.easybuy.entity.User;
import cn.easybuy.service.UserService;

public class UserServiceImpl implements UserService{
	UserDao userDao=new UserDaoImpl();
	@Override
	public int saveUser(User user) {
		return userDao.saveUser(user);
	}

	@Override
	public List<User> getUsersByLoginName(String loginName) {
		return userDao.getUsersByLoginName(loginName);
	}

	@Override
	public List<User> getUsersForLogin(String loginName, String password) {
		return userDao.getUsersForLogin(loginName, password);
	}

	@Override
	public List<User> getUsersPage(int currNo, int pageSize) {
		return userDao.getUsersPage(currNo, pageSize);
	}

	@Override
	public int getTotalCount() {
		return userDao.getTotalCount();
	}

}
